//---------------------------------------------------------------------------

#ifndef Unit_cadnotasH
#define Unit_cadnotasH
//---------------------------------------------------------------------------
#include <stdio.h>
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------

class TFmCadNotas : public TForm
{
__published:	// IDE-managed Components
        TPanel *PanelBotoes;
        TLabel *Label1;
        TBitBtn *BtnNovo;
        TBitBtn *BtnVoltar;
        TPanel *PanelBotoes2;
        TBitBtn *BtnCancelar;
        TBitBtn *BtnInserir;
        TBitBtn *BtnLimpar;
        TPanel *PanelEdicao;
        TRadioGroup *RGAluno;
        TComboBox *CBoxAluno;
        TRadioGroup *RGDisciplina;
        TComboBox *CBoxDisciplina;
        TGroupBox *GBoxProvas;
        TLabeledEdit *EdProva1;
        TLabeledEdit *EdProva2;
        TLabeledEdit *EdProva3;
        TLabeledEdit *EdProva4;
        TCheckBox *CheckBoxProva1;
        TCheckBox *CheckBoxProva2;
        TCheckBox *CheckBoxProva3;
        TCheckBox *CheckBoxProva4;
        TGroupBox *GBoxTrabalhos;
        TLabeledEdit *EdTrab1;
        TLabeledEdit *EdTrab2;
        TLabeledEdit *EdTrab4;
        TLabeledEdit *EdTrab5;
        TCheckBox *CheckBoxTrab1;
        TCheckBox *CheckBoxTrab2;
        TCheckBox *CheckBoxTrab4;
        TCheckBox *CheckBoxTrab5;
        TCheckBox *CheckBoxTrab3;
        TLabeledEdit *EdTrab3;
        TLabeledEdit *EdTrab6;
        TCheckBox *CheckBoxTrab6;
        TCheckBox *CheckBoxExame1;
        TLabeledEdit *EdExame1;
        TCheckBox *CheckBoxExame2;
        TLabeledEdit *EdExame2;
        TGroupBox *GBoxPorcentagens;
        TLabel *LblPesoProvas;
        TTrackBar *TrackBarProva;
        TLabel *Label4;
        TLabel *Label2;
        TTrackBar *TrackBarTrab;
        TLabel *LblPesoTrab;
        TGroupBox *GBoxMedias;
        TEdit *EdMProvas;
        TLabel *Label3;
        TLabel *Label5;
        TEdit *EdMTrabs;
        TLabel *Label6;
        TEdit *EdMTotal;
        TLabel *LblSituacao;
        TLabel *Label7;
        TLabel *Label8;
        void __fastcall BtnVoltarClick(TObject *Sender);
        void __fastcall CheckBoxProva1Click(TObject *Sender);
        void __fastcall CheckBoxProva2Click(TObject *Sender);
        void __fastcall CheckBoxProva3Click(TObject *Sender);
        void __fastcall CheckBoxProva4Click(TObject *Sender);
        void __fastcall CheckBoxExame1Click(TObject *Sender);
        void __fastcall CheckBoxExame2Click(TObject *Sender);
        void __fastcall CheckBoxTrab1Click(TObject *Sender);
        void __fastcall CheckBoxTrab2Click(TObject *Sender);
        void __fastcall CheckBoxTrab3Click(TObject *Sender);
        void __fastcall CheckBoxTrab4Click(TObject *Sender);
        void __fastcall CheckBoxTrab5Click(TObject *Sender);
        void __fastcall CheckBoxTrab6Click(TObject *Sender);
        void __fastcall BtnNovoClick(TObject *Sender);
        void __fastcall BtnCancelarClick(TObject *Sender);
        void __fastcall BtnInserirClick(TObject *Sender);
        void __fastcall BtnLimparClick(TObject *Sender);
        void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
        void __fastcall TrackBarProvaChange(TObject *Sender);
        void __fastcall TrackBarTrabChange(TObject *Sender);
        void __fastcall FormPaint(TObject *Sender);
        void __fastcall RGAlunoClick(TObject *Sender);
        void __fastcall RGDisciplinaClick(TObject *Sender);
        void __fastcall CBoxAlunoChange(TObject *Sender);
        void __fastcall CBoxDisciplinaChange(TObject *Sender);
        void __fastcall EdProva1Change(TObject *Sender);
        void __fastcall EdProva2Change(TObject *Sender);
        void __fastcall EdProva3Change(TObject *Sender);
        void __fastcall EdProva4Change(TObject *Sender);
        void __fastcall EdExame1Change(TObject *Sender);
        void __fastcall EdExame2Change(TObject *Sender);
        void __fastcall EdTrab1Change(TObject *Sender);
        void __fastcall EdTrab2Change(TObject *Sender);
        void __fastcall EdTrab3Change(TObject *Sender);
        void __fastcall EdTrab4Change(TObject *Sender);
        void __fastcall EdTrab5Change(TObject *Sender);
        void __fastcall EdTrab6Change(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private:	// User declarations
  FILE *cadalunos, *caddis, *cadnotas;
  void BuscarAlunos(void);
  void BuscarDisciplina(void);
  void ChecarAlunoDis(void);
  void AtualizaMedias(void);
  int posicao;
public:		// User declarations
        __fastcall TFmCadNotas(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFmCadNotas *FmCadNotas;
//---------------------------------------------------------------------------
#endif
